Skip to content
This repository was archived by the owner on May 5, 2021. It is now read-only.

Conversation

@jdstmporter
Copy link

@jdstmporter jdstmporter commented Aug 6, 2017

I have added some small changes top the base class that allow:
(1) use of an extend method to extend a lock that is already owner by a specified ttl
(2) test if a lock with a given name is already taken
The extension mechanism is based on the specification in the original paper, and uses an in-DB Lua script to ensure atomicity.
I have also updated the CLI accordingly.
This is a small change, but adds a useful capability, enabling lock owners to poll and extend at regular intervals. I hope you think it adds to the library as is.

@jdstmporter jdstmporter changed the title Add the capacity to extend a REreLock Add the capacity to extend a RedLock lock, as per the specification Aug 6, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant